package grupobbva.pe.operhc.form;



import grupobbva.pe.operhc.domain.Tabla;

import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

public class PerfilRolForm extends ActionForm{


	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String idPerfil;
	private List<Tabla> perfiles;
	
	private String[] cmbReasonSourcep;
	private String[] cmbReasonDestinationp;
	private String seleccionados;
	
	public PerfilRolForm() {
		
		idPerfil="";
		seleccionados = "";
		cmbReasonSourcep = new String[0];
		cmbReasonDestinationp = new String[0];
		perfiles = new ArrayList<Tabla>();
		
	}


	public String getIdPerfil() {
		return idPerfil;
	}

	public void setIdPerfil(String idPerfil) {
		this.idPerfil = idPerfil;
	}


	public List<Tabla> getPerfiles() {
		return perfiles;
	}


	public void setPerfiles(List<Tabla> perfiles) {
		this.perfiles = perfiles;
	}

	


	public String[] getCmbReasonSourcep() {
		return cmbReasonSourcep;
	}


	public void setCmbReasonSourcep(String[] cmbReasonSourcep) {
		this.cmbReasonSourcep = cmbReasonSourcep;
	}


	public String[] getCmbReasonDestinationp() {
		return cmbReasonDestinationp;
	}


	public void setCmbReasonDestinationp(String[] cmbReasonDestinationp) {
		this.cmbReasonDestinationp = cmbReasonDestinationp;
	}


	public String getSeleccionados() {
		return seleccionados;
	}


	public void setSeleccionados(String seleccionados) {
		this.seleccionados = seleccionados;
	}


	public void reset(ActionMapping mapping, HttpServletRequest request) {
		try {  
			  request.setCharacterEncoding("UTF-8");  
		} catch (UnsupportedEncodingException ex) {
			ex.printStackTrace();
		}
		super.reset(mapping, request);
	}


}
